/*
 * @Author: tcosfish
 * @Date: 2022-07-25 09:25:41
 * @LastEditors: tcosfish
 * @LastEditTime: 2022-07-25 16:47:04
 * @FilePath: \loadFile\src\database\index.ts
 */

import "reflect-metadata"
import { DataSource } from "typeorm"

import { DataSourceConfig } from "@/config/database.config"

// 要连接前的还是要连接后的
export const AppDataSource = new DataSource(DataSourceConfig)
